package com.hackintosh.abstractFactory;

/**
 * @description：
 * @author：twislyn
 * @date：Created in 2021/05/08
 * @modified By：
 * @version: 1.0
 */
public class SGfarm implements Farm {
    @Override
    public Animal newAnimal() {
        System.out.println("新马出生！");
        return new Horse();
    }

    @Override
    public Plant newPlant() {
        System.out.println("水果长成！");
        return new Fruit();
    }
}
